import {connect} from "react-redux";

//引入对应的木偶组件

import View from "../components/view/view"

import recomSong from "../actions/RecomSongListAction"

//新歌歌单的接口
import {getNewEditList,getNewSongList} from "../api/index"

const mapStateToProps=(state)=>{
    // console.log(state)
    return {
       SongList:state.RecommondSong.SongList
    }
}

const mapDispatchToProps=(dispatch)=>{
    return {
          getrecomSong(){
              dispatch(recomSong())
          },
          //新专辑方法
          getNewEditList(){
               return getNewEditList()
          },
          //新歌方法
          getNewSongList(){
             return getNewSongList()
          }
         
    }
}


const RecomSongSheet =connect(mapStateToProps,mapDispatchToProps)(View);

export default RecomSongSheet